<template>
  <div class="box">
    <div class="notFound">
      <img src="@/assets/images/404.png" alt="">
      <p>页面找不到了~<b @click="goHome">去首页</b></p>
    </div>
  </div>
</template>

<script>
export default {
  data () {
    return {}
  },
  methods: {
    goHome () {
      this.$router.replace('/home')
    }
  }
}
</script>

<style lang="scss" scoped>
.notFound {
  width: 2.24rem;
  height: 1.2rem;
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  margin: auto;
  img {
    width: 2.24rem;
    height: 0.96rem;
  }
  p {
    width: 100%;
    height: 0.14rem;
    font-size: 0.14rem;
    text-align: center;
    line-height: 0.14rem;
    margin-top: 0.1rem;
    b {
      text-decoration: underline;
      font-weight: normal;
      color: #ff6b6b;
    }
  }
}
</style>
